package com.mlh.springboot.controller;

import com.mlh.springboot.bean.Furn;
import com.mlh.springboot.service.FurnService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

/**
 * @author 缪林辉
 * @date 2024/3/4 15:57
 * @DESCRIPTION
 */
@Controller
public class MybatisController {
    @Resource
    private FurnService furnService;
    @GetMapping("/mybatis")
    @ResponseBody
    public Furn select(Integer id){
        return furnService.selectFurnById(id);
    }
}
